package com.guli.gulimall.product.feign;

import com.guli.common.to.MemberPriceTo;
import com.guli.common.to.SkuFullReductionTo;
import com.guli.common.to.SkuLadderTo;
import com.guli.common.to.SpuBoundsTo;
import com.guli.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

@FeignClient("gulimall-coupon")
public interface CouponFeign {
    @RequestMapping("coupon/spubounds/save")
    public R saveSpuBoundsTo(@RequestBody SpuBoundsTo spuBoundsTo);

    @RequestMapping("coupon/skuladder/save")
    public R saveSkuLadderTo(@RequestBody SkuLadderTo skuLadderTo);

    @RequestMapping("coupon/skufullreduction/save")
    public R saveSkuFullReductionEntity(@RequestBody SkuFullReductionTo skuFullReduction);


    @RequestMapping("coupon/memberprice/save")
    public R saveMemberPriceTo(@RequestBody List<MemberPriceTo> memberPrice);
}


